If anyone is doing part time PhD from a University and publishing his PhD research work with affiliation of working place as using resources there. Can his/her published paper be counted as part of his/her PhD work?
As Neil suggests - you should check the institutional policy/practice. Some institutions allow you to include a full publication (especially as a portfolio) within a thesis, others part of it - and others, again, allow you to refer to and cite the publication - but it does not replace the word count.